package com.etc.fx;

import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;

public class AController {

	@FXML
	TextField txt1;
	@FXML
	Button btn1;
	
	public void clickbtn1() {
//		alert("hello world");
		Alert alter = new Alert(AlertType.INFORMATION);
		String str = txt1.getText();
		alter.setContentText(str);
		txt1.setText("");
		alter.show();
	}
}
